<?php
class DetailController extends Zendvn_Controller_Action{
	
	private $_arrParam;
	private $_mainAction;
	
	public function init(){
		$this->loadTemplate(TEMPLATE_PATH . '/public','template_detail.ini');
		$this->_arrParam = $this->_request->getParams();
		$this->_mainAction = $this->_arrParam['module'] . '/' . $this->_arrParam['controller']. '/index';
		$this->view->arrParam = $this->_arrParam;
	}
	
	public function indexAction(){
		
	}
	public function categoryAction(){
		$tblProduct = new Model_Table_Product();
		$this->view->Items = $tblProduct->getItemsInCategory($this->_arrParam);		
	}
	public function productAction(){
		
		$tblProduct = new Model_Table_Product();
		$this->view->Item = $tblProduct->getItem($this->_arrParam);	
	}
	public function newsAction(){
		$tblNews = new Model_Table_News();		
		$this->view->Item = $tblNews->getNew($this->_arrParam);
	}
}